﻿<html dir="LTR"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"><title>FTPClient.Dir Method (String, Boolean)</title><xml></xml><link rel="stylesheet" type="text/css" href="MSDN.css"></head><body id="bodyID" class="dtBODY"><div id="nsbanner"><div id="bannerrow1"><table class="bannerparthead" cellspacing="0"><tr id="hdr"><td class="runninghead">An NDoc Documented Class Library</td><td class="product"></td></tr></table></div><div id="TitleRow"><h1 class="dtH1">FTPClient.Dir Method (String, Boolean)</h1></div></div><div id="nstext"><p>
            List a directory's contents as an array of strings.
            </p><div class="syntax">public virtual <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string[]</a> Dir(<br>   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a> <i>dirname</i>,<br>   <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">bool</a> <i>full</i><br>);</div><h4 class="dtH4">Parameters</h4><dl><dt><i>dirname</i></dt><dd>Name of directory OR filemask.</dd><dt><i>full</i></dt><dd><code>true</code> if detailed listing required, <code>false</code> otherwise.</dd></dl><h4 class="dtH4">Return Value</h4><p>An array of directory listing strings.</p><h4 class="dtH4">Remarks</h4><p>
            If <code>full</code> is <code>true</code> then a detailed
            listing if returned (if available), otherwise just filenames are provided.
            The detailed listing varies in details depending on OS and
            FTP server. Note that a full listing can be used on a file
            name to obtain information about a file
            </p><h4 class="dtH4">See Also</h4><p><a href="EnterpriseDT.Net.Ftp.FTPClient.html">FTPClient Class</a> | <a href="EnterpriseDT.Net.Ftp.html">EnterpriseDT.Net.Ftp Namespace</a> | <a href="EnterpriseDT.Net.Ftp.FTPClient.Dir_overloads.html">FTPClient.Dir Overload List</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="Dir method"><param name="Keyword" value="Dir method, FTPClient class"><param name="Keyword" value="FTPClient.Dir method"></object></div></body></html>